package edu.sctu.fengleilin.month05.day150521;

/**
 * Created by user09 on 2015/5/21.
 */
public class AddClass {
    public int x = 0, y = 0, z = 0;

    AddClass(int x) {
        this.x = x;
    }

    AddClass(int x, int y) {
        this(x);
        this.y = y;
    }

    AddClass(int x, int y, int z) {
        this(x, y);
        this.z = z;
    }

    public int add() {
        return x + y + z;
    }


}
